<?php

/**
 * refer form contents
 *
 * @package ReferPeople
 */
if (elgg_get_config('allow_registration')) {
	$refer = elgg_echo('referpepole:titlerefer');
	$referto = elgg_echo('referpepole:referto');
	$site = elgg_get_site_entity();
	$introduction = elgg_echo('referpeople:introduction');
	$message = elgg_echo('referpeople:message');
	$default = elgg_echo('referpeople:message:default', array($site->name));

echo <<< HTML
	<script type="text/javascript">
	function selectFromContacts()
	{
		document.getElementById("demo").innerHTML=Date();
	}
	</script>

<div>
<!--button type="button" onclick="selectFromContacts()">Select From Contacts</button-->
<table>
<tr>
  <label for="first_name">First Name</label>
</tr>
<tr>
  <input  type="text" name="first_name" maxlength="50" size="30">
</tr>
<tr>
  <label for="last_name">Last Name</label>
</tr>
<tr>
  <input  type="text" name="last_name" maxlength="50" size="30">
</tr>
<tr>
  <label for="emails">Email Address</label>
</tr>
<tr>
  <input  type="text" name="emails" maxlength="80" size="30">
</tr>
<tr>
  <label for="telephone">Telephone Number</label>
</tr>
<tr>
  <input  type="text" name="telephone" maxlength="30" size="30">
</tr>
<tr>
  <label for="comments">Comments</label>
</tr>
<tr>
  <textarea  name="comments" maxlength="140" cols="25" rows="3"></textarea>
</tr>
</table>
</div>

HTML;

	echo '<div class="elgg-foot" align="right">';
	echo elgg_view('input/submit', array('value' => elgg_echo('send to James')));
	echo '</div>';
} else {
	echo elgg_echo('referpeople:registration_disabled');
}
